﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestLinq.Entities;
using System.Data.Linq;

namespace TestLinq.Data
{
    public class TestDataContext:System.Data.Linq.DataContext
    {
        private static System.Data.Linq.Mapping.MappingSource mapping = new System.Data.Linq.Mapping.AttributeMappingSource();
        // default connectionstring

        private static string ConnectionStrings = System.Configuration.ConfigurationManager.ConnectionStrings["QuanLyBilliards"].ConnectionString;
        public TestDataContext(string connectionStrings):base(connectionStrings,mapping)
        { }
        public TestDataContext()
            : this(ConnectionStrings)
        { }

        public Table<DangNhapInfo> DangNhap { get { return this.GetTable<DangNhapInfo>(); } }
    }
}
